local statusKey = ARGV[1]
local userId = ARGV[2]
local code = ARGV[3]

local key = ARGV[4]
local score = ARGV[5]

local blogKey = ARGV[6]
local blogId = ARGV[7]
local blogNum = ARGV[8]

redis.call('HSET',statusKey,userId,code)

redis.call('ZADD',key,score,userId)

redis.call('ZINCRBY',blogKey,blogNum,blogId)